let actionCreator = (type, payload) => ({ type, payload });
export const GETLISTDETAIL = function(params) {
    // console.log(params);
    return function(dispatch) {
        fetch("http://106.12.79.128:666/toplist/detail")
            .then(body => body.json())
            .then(res => {
                dispatch(actionCreator("GETLISTDETAIL", res.list));
            })
            .catch(err => {
                throw new Error(err);
            });
    };
};
